<?php 
    //$this->renderPartial('_videoshow', array('vid'=>1, 'cr'=>Yii::app()->user->name, 'co'=>'KRISOPRAS', 'ca'=>'CAMERA01', 'vwidth'=>320,'vheight'=>240, 'vinterval'=>2000, 'btnplayisvisible'=>FALSE, 'autoplay'=>TRUE, 'showtimeinfo'=>TRUE));
	 
?>

<br>
<table style="border-style: solid;border-width: thin;">
    <?php $maxcolumn = 2;$i=0; ?>
    <?php for($x=0;$x<count($cctvmappvideo)/$maxcolumn;$x++) { ?>
        <tr>
            <?php for($a=0;$a<$maxcolumn;$a++){ ?>
            <td style="border-left-width: thin;border-left-style: solid;width:  340px;">
                    <?php $this->renderPartial('_videoshow', array('vid'=>2,'cr'=>Yii::app()->user->name, 'co'=>isset($cctvmappvideo[$i])?$cctvmappvideo[$i]->ComputerName:NULL, 'ca'=>isset($cctvmappvideo[$i])?$cctvmappvideo[$i]->CameraName:NULL, 'vwidth'=>320,'vheight'=>240, 'vinterval'=>100, 'btnplayisvisible'=>FALSE, 'autoplay'=>TRUE, 'showtimeinfo'=>FALSE)); ?>
                    <strong>
                        <?php echo $cctvmappvideo[$i]->companyBranch->companyBranch->CompanyBranchName; ?>, 
                        <?php echo $cctvmappvideo[$i]->cameraName->CameraName; ?>
                    </strong>
                </td>
            <?php $i++;} ?>
        </tr>
    <?php } ?>
</table>
<div class="form">
</div>